import React, { useEffect } from 'react'

function Index() {
    useEffect(() => {
        const timer = setTimeout(() => {
            // 跳转页面
            window.location.href = "/home";
        }, 3000)
        // 销毁定时器
        return () => { clearTimeout(timer) }
    }, [])
    return (
        <div style={{ width: '100%', height: '100vh', display: 'flex', justifyContent: 'center', position: 'relative' }}>
            <img style={{ width: '100px', height: '100px', marginTop: '170px' }} src="https://img.pcsoft.com.cn/azsoft/202112/194224-61b1eba0cfac3.png" alt="" />
            <span style={{ fontSize: '12px', fontWeight: 'bold', position: 'absolute', bottom: '100px' }}>人名好医生</span>
        </div>
    )
}

export default Index
